import Vue from 'vue';
import VueRouter from 'vue-router';

Vue.use(VueRouter);

const routes = [
	{
		path: '/login',
		name: 'login',
		alias: '/',
		component: () => import(/* webpackChunkName: "about" */ '../views/Login.vue')
	},
	{
		path: '/index',
		name: 'index',
		component: () => import(/* webpackChunkName: "about" */ '../views/Index.vue'),
		children: [
			{ path: 'lanbangkeji/user/huiyuan/index', name: 'Huiyuan', component: () => import('../views/managementBus/huiyuan/Huiyuan.vue'), meta: { title: '会员' } },
			{ path: '/', name: 'Index', component: () => import('../views/managementBus/Welcome.vue'), meta: { title: '首页' } },
			{ path: 'huiyaunliushuicz', name: 'Huiyuanliushuicz', component: () => import('../views/managementBus/huiyuan/Huiyuanliushuicz.vue'), meta: { title: '充值流水' } },
			{ path: 'lanbangkeji/user/liushuishuju/index', name: 'Liushuishuju', component: () => import('../views/managementBus/huiyuan/Liushuishuju.vue'), meta: { title: '用户流水' } },
			{ path: 'lanbangkeji/user/yiJianXiang/index', name: 'YiJianXiang', component: () => import('../views/managementBus/huiyuan/YiJianXiang.vue'), meta: { title: '意见/投诉' } },
			{ path: 'hotName/index', name: 'HotName', component: () => import('../views/managementBus/hotname/HotName.vue'), meta: { title: '热搜管理' } },
			{ path: 'xqq/index', name: 'Xqq', component: () => import('../views/managementBus/xqq/Xqq.vue'), meta: { title: '相亲圈管理' } },
			{ path: 'liaotianshi', name: 'ChatRoom', component: () => import('../views/managementBus/chatroom/ChartRoom.vue'), meta: { title: '聊天室' } },
			{ path: 'xqgjx/index', name: 'Xqgjx', component: () => import('../views/managementBus/xqgjx/Xqgjx.vue'), meta: { title: '相亲工具箱' } },
			{ path: 'act/index', name: 'Xqgjx', component: () => import('../views/managementBus/act/Act.vue'), meta: { title: '活动管理' } },
			{ path: 'xqquser/index', name: 'Xqquser', component: () => import('../views/managementBus/xqqyh/Xqquser.vue'), meta: { title: '相亲圈用户' } },
			{ path: 'dy/index', name: 'Dtgl', component: () => import('../views/managementBus/dy/Dtgl.vue'), meta: { title: '动态管理' } },
			{ path: 'yt/index', name: 'Yt', component: () => import('../views/managementBus/yt/Yt.vue'), meta: { title: '帮您约她' } },
			{ path: 'xitongchanshu', name: 'Xitongchanshu', component: () => import('../views/managementBus/xtpz/Xtcs.vue'), meta: { title: '系统参数' } },
			{ path: 'czConfig/index', name: 'Yt', component: () => import('../views/managementBus/xtpz/Czpz.vue'), meta: { title: '充值配置' } },
			{ path: 'lanbangkeji/config/lbConfig/index', name: 'Yt', component: () => import('../views/managementBus/xtpz/Lbpz.vue'), meta: { title: '轮播配置' } },
			{ path: 'wenbenpeizhi', name: 'Wenbenpeizhi', component: () => import('../views/managementBus/xtpz/Wbpz.vue'), meta: { title: '文本配置' } },
			{ path: 'hobby', name: 'Yt', component: () => import('../views/managementBus/xtpz/Xqah.vue'), meta: { title: '兴趣爱好配置' } },
			{ path: 'shangchuan', name: 'Shangchuan', component: () => import('../views/Systemmanagement/upimg/shangchuan.vue'), meta: { title: '上传图片' } },
			{ path: 'user', name: 'User', component: () => import('../views/Systemmanagement/user/User.vue'), meta: { title: '用户管理' } },
			{ path: 'role', name: 'Role', component: () => import('../views/Systemmanagement/role/Role.vue'), meta: { title: '角色管理' } },
			{ path: 'menu', name: 'Menu', component: () => import('../views/Systemmanagement/menu/Menu.vue'), meta: { title: '菜单管理' } },
			{ path: 'dept', name: 'Dept', component: () => import('../views/Systemmanagement/dept/Dept.vue'), meta: { title: '部门管理' } },
			{ path: 'post', name: 'Post', component: () => import('../views/Systemmanagement/postmanger/Post.vue'), meta: { title: '岗位管理' } },
			{ path: 'notice', name: 'Notice', component: () => import('../views/Systemmanagement/notice/Notice.vue'), meta: { title: '通知公告' } },
			{
				path: 'dict',
				name: 'Dict',
				component: () => import('../views/Systemmanagement/dict/Dict.vue'),
				meta: { title: '字典管理' }
			},
			{ path: 'dict/type/data', name: 'Datadict', component: () => import('../views/Systemmanagement/dict/DictData.vue'), meta: { title: '字典数据' } },
			{ path: 'config', name: 'Config', component: () => import('../views/Systemmanagement/systemconfig/Config.vue'), meta: { title: '参数设置' } },
			{ path: 'operlog', name: 'Operlog', component: () => import('../views/Systemmanagement/loginfo/Operlog.vue'), meta: { title: '操作日志' } },
			{ path: 'logininfor', name: 'Logininfo', component: () => import('../views/Systemmanagement/loginfo/Logininfor.vue'), meta: { title: '登录日志' } }
		]
	}
];

const router = new VueRouter({
	routes
});

export default router;
